package com.line.model.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "分页实体", description = "分页实体对象，通用实体类")
public class PagePojo {

	@ApiModelProperty(name = "pageNo", value = "当前页码，页码从1开始", example = "1")
	private Integer pageNo;

	@ApiModelProperty(name = "pageSize", value = "当前页显示的记录数", example = "10")
	private Integer pageSize;

	@ApiModelProperty(name = "totalPages", value = "总页数", example = "10")
	private Integer totalPages; // 总共页码

	@ApiModelProperty(name = "totalElements", value = "总记录数", example = "100")
	private Long totalElements; // 总共记录数

	@ApiModelProperty(name = "data", value = "具体的内容，可为实体对象，也可为JSON", example = "依实际情况而定")
	private Object data;

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(Integer totalPages) {
		this.totalPages = totalPages;
	}

	public Long getTotalElements() {
		return totalElements;
	}

	public void setTotalElements(Long totalElements) {
		this.totalElements = totalElements;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
